NAV
Curl

Introduction

Welcome to the Alaunus API! You can use our API to access Alaunus API endpoints, which can get information on stuff in our database.

We have language bindings in Shell, Ruby, and Python! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

Authentication

To authorize, use this code:

require 'Kittn'

api = Kittn::APIClient.authorize!('meowmeowmeow')
import kittn

api = kittn.authorize('meowmeowmeow')
# With shell, you can just pass the correct header with each request
curl "api_endpoint_here"
  -H "Authorization: meowmeowmeow"
const kittn = require('kittn');

let api = kittn.authorize('meowmeowmeow');

Make sure to replace meowmeowmeow with your API key.

Kittn uses API keys to allow access to the API. You can register a new Kittn API key at our developer portal.

Kittn expects for the API key to be included in all API requests to the server in a header that looks like the following:

Authorization: meowmeowmeow

Query

Queries

Operators
Notes
equality
(show more)
passes if the document's value is equal to the query's value for the specified field
$gt, $gte, $lt, $lte, $ne
(show more)
similar to the equality operator, but with the other comparison operators instead:
>, >=, <, <=, !=
$in, $nin
(show more)
$in: passes if the document's value is equal to one of the query's values for the specified field
$nin: passes if the document's value is not equal to any of the query's values for the field
$exists
(show more)
passes if the specified field exists/doesn't exist in the document
$or, $and, $not ,$nor
(show more)
$or: passes if one of the subqueries passes
$and: passes if all of the subqueries pass
$not: inverts the result of the subqueries
$nor: passes if none of the subqueries pass
$elemMatch
(show more)
passes if all subqueries pass on the document's subfields of field
  • the fields of the subqueries are the subfields of field
  • the outer field must be of type subdocuments or array
$regex
(show more)
passes if the document's value matches the pattern of the query's value for the specified field
  • this is useful for partial string matching
  • for the given example, value "and" accepts names like "Andrew", "Sandy", "Ferdinand", ...
  • "$options":"i" means case insensitive
  • there are other options: m, x, s
  • refer to mongodb

Accounts

The accounts object

Attributes:

Attribute
Description
This contains the created date
This contains the account id number
active
integer 
If the account is active or not
billing_settings
subdocument 
Contains all the billing settings, like how is the billing going to happen, what happens with late checkouts and others
candidate_settings
subdocument 
Contains all information on employee candidates, like stage, description, hr information and more
email
string 
Retrieves the email data
emergency_phones
subdocuments 
Contains the emergency phones and its informations
ext_id
string 
Contains the external id
hst_number
string 
Contains the HST number
invoice_settings
subdocument 
Contains all the invoice settings, like the sales rep for example.
locations
subdocuments 
Location info, like address and geolocation
logo
file 
Company logo
name
subdocument 
Name of the company
payroll_settings
subdocument 
Contains all the payroll settings, like the type of payroll, the period and others
policy
file 
The company's policy
role_settings
subdocument 
This contains the settings for each role inside the company
roles
subdocuments 
Contains information about the roles, like for example the type, color and all the permissions
sales_reps
subdocuments 
Contains information on the sales reps, like his or hers name, office, nickname and others
scheduler_settings
subdocument 
Contains all the scheduler settings, like duration and permissions for example
services
subdocuments 
Contains the services and its informations, like its code, description, pay rate and others
settings
subdocument 
Contains settings like the timezone, currency used, country, language and others
taxes
subdocuments 
Contains the taxes info, like the amount and its label
telephony
subdocument 
Contains the telephony information, like the authentication token, errors and others
terms
subdocuments 
Contains the company's terms
visit_settings
subdocument 
Contains all the visit settings, like punchcards, gps, overrides and telephony
website
string 
Contains the company's website
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "auth": {
    "access_token": "JDJhJDEwJDZucU9qVDEvVXo3dFlvNXk3b2NOR0...",
    "access_secret": "VTJGc2RHVmtYMS91TDRQWTZxeE5LTWJPZ0xka...",
    "access_key": "VTJGc2RHVmtYMSs4cjJqUlAxckxxRDV2NUN4Uk14..."
  },
  "user": {
    "_id": "57360e77f90e15c27c8b4567",
    "ext_id": "6O0482C",
    "last_login_date": "2016-11-08T15:37:29-05:00",
    "pin_lastchanged_date": "2016-05-13T13:36:44-04:00",
    "date_of_birth": "1983-05-17",
    "locations": [
      {
        "_created_user": {
          "_id": "5679cdb609da69d90c8b4577",
          "ext_id": "BNUWU93",
          "email": "iegor.benzyk2@alaunus.com",
          "name": {
            "first": "Isaac",
            "last": "Romanov",
            "title": "2e5c84ad927c053c8b7a7657"
          }
        },
        "address": {
          "street": "151 Charles St W",
          "city": "Kitchener",
          "lat": 43.4509381,
          "lng": -80.4982637,
          "country": "29f678bca33e6a07d9d61066",
          "state": "baa39fa80fb2f0bbf4d8cfdf"
        },
        "primary": true,
        "type": "3f5aa337cc7338b01f435787",
        "_id": "5736124ef90e15c37c8b456c",
        "_key": 0
      }
    ],
    "is_recover": true
  },
  "stage": "dev",
  "version": "1.4.5"
}

Create accounts

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit accounts

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete accounts

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get account

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List accounts

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Candidates

The candidates object

Attributes:

Attribute
Description
_deleted_dates
subdocuments 
Contains the date in which the candidate was deleted and its reasons
_hired
boolean 
If candidate was hired or not
_hired_date
datetime 
Date in which the candidate was hired
User that hired
availability
subdocument 
What are the days and hours that the candidate is available during the week
candidate_notes
subdocuments 
Notes on the candidate
What is the status of the candidate, applied, phone screened, selected for interview, interviewd or hired
certifications
subdocuments 
What are the certifications of the candidate
How are the cleaning skills of the candidate
How are the cooking skills of the candidate
cover_letter
string 
Candidate's cover letter
If the candidate was a criminal offender
In case the candidate was a criminal offender, what was the reason
Contains the date of birth of the candidate
Contains information on the candidate's drivers licence, if the candidate has one or not and others
This contains the level of education of the candidate
email
string 
Contains the email of the candidate
employment_history
subdocuments 
This contains the employment history of the candidate, previous jobs, duration and etc
How many years of experiece the candidate has
experience_with_ages
subdocument 
Information on which range of ages the candidate has experience with
ext_id
string 
Contains the external id
gender
id 
Contains the gender of the candidate
has_pets
boolean 
If the candidate is okay with pets
is_smoker
boolean 
If the candidate is okay with smokers
languages
subdocuments 
Contains the languages spoken by the candidate and which one is the primary language
Living status of the candidate
locations
subdocuments 
Location info, like address and geolocation
manager
id 
Manager info
name
subdocument 
Name of the candidate
The nearest intersection to the candidate
phones
subdocuments 
Information on the candidate's phones, like numbers and types
rating
integer 
Contains the rating on the candidate
resume
string 
Candidate's resume
salary_expectations
subdocument 
What are the salary expectations of the candidate
skills
subdocuments 
What are the candidate's skills
source
id 
Candidate's source
How are the swimming skills of the candidate
Contains the method of transportation of the candidate, if it is by bus or car for example
travel_passport
boolean 
If the candidate has a valid travel passport or not
If the candidate is okay with pets, which kind of pets
us_visa
boolean 
If the candidate has a US travel visa or not
will_travel
boolean 
If the candidate is willing to travel or not
What is the type of work permit of the candidate
work_status
subdocument 
Contains information on the candidate work status, if it is full time, part time, temp or on call
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "57bb51926de3adca448b456c",
  "candidate_status": "f577a1a7ca2e3da7c4e5d509",
  "email": "carol.fuji@alaunus.com",
  "rating": 1,
  "_account": {
    "_id": "53f6aa644d2de64fb30000af",
    "candidate_settings": {
      "submit_id": "6d54f4fa69cc90efa35d9ac3",
      "is_hiring": true,
      "candidate_stages": [
        {
          "_id": "8a0a81c9d3ac2a850d05a1a9",
          "code": "applied",
          "color": "#919191",
          "label": "Applied",
          "order": 0,
          "_key": 0
        },
        {
          "color": "#6699ff",
          "label": "Phone Screened",
          "order": 1,
          "_id": "a8afc802b406cbb465019cb3",
          "code": "phone",
          "_key": 1
        },
        {
          "order": 2,
          "_id": "b9901f6a469fceb28b9759c5",
          "code": "interview",
          "color": "#009999",
          "label": "Selected for Interview",
          "_key": 2
        },
        {
          "_id": "f577a1a7ca2e3da7c4e5d509",
          "code": "other",
          "color": "#009933",
          "label": "Interviewed",
          "order": 3,
          "_key": 3
        }
      ],
      "request_id": "49db79f2b33c237eac6bdc26"
    }
  },
  "ext_id": "KVLA02F",
  "experience_with_ages": {
    "age_0_months_3_months": false,
    "age_3_months_1_year": false,
    "age_1_year_3_years": false,
    "age_3_years_6_years": false,
    "age_6_years_10_years": false,
    "age_10_years_15_years": false,
    "age_15_years_more": false
  },
  "criminal_offender": true,
  "work_permit": "30afd55e70f46110f468034c",
  "_schema": "55b12234599748249a5b3341",
  "_created_date": "2016-08-22T15:25:06-04:00",
  "availability": {
    "mon": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b456e",
        "_key": 0
      }
    ],
    "tue": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b456f",
        "_key": 0
      }
    ],
    "wed": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b4570",
        "_key": 0
      }
    ],
    "thu": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b4571",
        "_key": 0
      }
    ],
    "fri": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b4572",
        "_key": 0
      }
    ],
    "sat": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b4573",
        "_key": 0
      }
    ],
    "sun": [
      {
        "start": 0,
        "end": 1440,
        "_id": "57e875924c120cc7018b4574",
        "_key": 0
      }
    ]
  },
  "travel_passport": false,
  "living_status": "14063fd9ce471eb4a89e8efb",
  "us_visa": false,
  "is_smoker": false,
  "has_pets": false,
  "phones": [
    {
      "country": "29f678bca33e6a07d9d61066",
      "number": "+15585451132",
      "_id": "57bb51926de3adca448b456a",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "primary": true,
      "_key": 0
    }
  ],
  "will_travel": false,
  "date_of_birth": "1989-11-16",
  "name": {
    "first": "Caroline",
    "last": "Fuji"
  },
  "locations": [
    {
      "address": {
        "lat": 43.6152684,
        "lng": -79.7098497,
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "street": "834 Mays Crescent",
        "city": "Mississauga",
        "zip": "L5V2G6"
      },
      "primary": true,
      "_id": "57bb51926de3adca448b456b",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 0
    }
  ],
  "work_status": {
    "temp": false,
    "on_call": false,
    "full_time": false,
    "part_time": false
  }
}

Create candidates

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit candidates

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete candidates

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get candidate

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List candidates

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Clients

The clients object

Attributes:

Attribute
Description
accounting_id
string 
Contains the accounting id
color
string 
Color of the tag
company
subdocument 
Company's name and website
contact
subdocument 
Information on the client, like name, phones and gender
Type of client, if it is company or person
email
string 
Contains the email of the client
employees
subdocuments 
Contains information on the employees, like their names, offices, emails and others
ext_id
string 
Contains the external id
locations
subdocuments 
Location info, like address and geolocation
type
id 
Type of client, if it is company or person
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "53f6b931ccdf0519510000fe",
  "_created_date": "2014-06-22T04:25:42-04:00",
  "ext_id": "X93FR",
  "accounting_id": "X93FR",
  "employees": [
    {
      "name": {
        "title": "2e5c84ad927c053c8b7a7657",
        "first": "Anderson",
        "last": "Smith"
      },
      "office": {
        "address": {
          "state": "baa39fa80fb2f0bbf4d8cfdf",
          "lat": 43.8076048,
          "lng": -79.3381626,
          "street": "3650 Victoria Avenue",
          "country": "29f678bca33e6a07d9d61066",
          "street_extra": "9th Floor",
          "city": "North York",
          "zip": "M2H3P7"
        },
        "_id": "53bc6f33f918f12387000000",
        "_created_user": "53a8701dd6c8df514f8b459d",
        "title": "North York Location",
        "_key": 0
      },
      "_created_user": "53a8701dd6c8df514f8b459d",
      "phone": {
        "country": "29f678bca33e6a07d9d61066",
        "number": "+16359961547"
      },
      "email": "anderson.smith@alaunus.com",
      "_id": "54bd355e6fe5165c1700005e",
      "ext_id": "YTQX87S",
      "_key": 0
    }
  ],
  "color": "#3CBB3A",
  "_account": "53f6aa644d2de64fb30000af",
  "type": "518bffa09c79e9cd0f2fbc82",
  "contact_type": "537117bbf518db6e5202a33c",
  "company": {
    "name": {
      "title": "TD General Insurance Company"
    }
  },
  "locations": [
    {
      "address": {
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "lat": 43.8076048,
        "lng": -79.3381626,
        "street": "3650 Victoria Avenue",
        "country": "29f678bca33e6a07d9d61066",
        "street_extra": "9th Floor",
        "city": "North York",
        "zip": "M2H3P7"
      },
      "_id": "53bc6f33f918f12387000000",
      "_created_user": "53a8701dd6c8df514f8b459d",
      "title": "North York Location",
      "_key": 0
    },
    {
      "address": {
        "street_extra": "4th Floor",
        "city": "Toronto",
        "zip": "M4S3A6",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "lat": 43.7043681,
        "lng": -79.3978194,
        "street": "2161 Yonge Street",
        "country": "29f678bca33e6a07d9d61066"
      },
      "_id": "53bc6f33f918f12387000001",
      "_created_user": "53a8701dd6c8df514f8b459d",
      "title": "Toronto Location",
      "_key": 1
    },
    {
      "_created_user": "53a8701dd6c8df514f8b459d",
      "title": "Burlington Location",
      "address": {
        "country": "29f678bca33e6a07d9d61066",
        "street_extra": "Suite 100",
        "city": "Burlington",
        "zip": "L7Y5Y7",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "lat": 43.3809104,
        "lng": -79.7698832,
        "street": "5045 South Service Road"
      },
      "_id": "53bc6f33f918f12387000002",
      "_key": 2
    }
  ]
}

Create clients

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit clients

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete clients

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get client

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List clients

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Contacts

The contacts object

Attributes:

Attribute
Description
_type
id 
Type of contact, if it is company or person
accounting_id
string 
Contains the accounting id
company
subdocument 
Company's name and website
contact
subdocument 
Information on the client, like name, phones and gender
email
string 
Contains the email of the contact
ext_id
string 
Contains the external id
fax
subdocument 
Contains the fax number of the contact
locations
subdocuments 
Location info, like address and geolocation
notes
string 
Notes on the contact
photo
file 
Photo of the contact
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "573f2b84f90e15421b8b456a",
  "accounting_id": "HOUSE",
  "company": {
    "name": {
      "title": "House"
    }
  },
  "_schema": "55b122aa599748249a5b3380",
  "ext_id": "HOUSE",
  "_type": "537117bbf518db6e5202a33c",
  "_account": "53f6aa644d2de64fb30000af",
  "_created_date": "2016-05-20T11:21:40-04:00"
}

Create contacts

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit contacts

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete contacts

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get contact

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List contacts

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Conversations

The conversations object

Attributes:

Attribute
Description
from
subdocument 
Form whom the message comes
messages
subdocuments 
The message info
to
subdocuments 
To whom the message will be sent
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "575042e0f90e15f24e8b456b",
  "messages": {
    "575042e0f90e15f24e8b4569": {
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "phones": [
          {
            "number": "+18888881111;ext=123",
            "_id": "57361284f90e15957c8b4569",
            "_created_user": "5679cdb609da69d90c8b4577",
            "primary": true,
            "country": "29f678bca33e6a07d9d61066",
            "type": "3a9158c55c954ed42dad0861",
            "_key": 0
          }
        ],
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "message": "Hey - are you able to take 3pm shift?",
      "from": {
        "_id": "57360e77f90e15c27c8b4567",
        "phones": [
          {
            "number": "+18888881111;ext=123",
            "_id": "57361284f90e15957c8b4569",
            "_created_user": "5679cdb609da69d90c8b4577",
            "primary": true,
            "country": "29f678bca33e6a07d9d61066",
            "type": "3a9158c55c954ed42dad0861",
            "_key": 0
          }
        ],
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "sent_date": "2016-06-02T10:29:52-04:00",
      "_id": "575042e0f90e15f24e8b4569",
      "_key": 0
    }
  },
  "to": {
    "575042e0f90e15f24e8b456a": {
      "user": {
        "_id": "53f6b78f6396a09753000074",
        "phones": [
          {
            "primary": true,
            "country": "29f678bca33e6a07d9d61066",
            "type": "3a9158c55c954ed42dad0861",
            "number": "+14555124587",
            "_id": "57bb44ac6de3ad2e428b45b1",
            "_created_user": "57360e77f90e15c27c8b4567",
            "_key": 0
          }
        ],
        "photo": "53f6b78f6396a09753000073",
        "name": {
          "first": "Ramona",
          "last": "Turner"
        }
      },
      "archived": false,
      "flag": false,
      "_id": "575042e0f90e15f24e8b456a",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "phones": [
          {
            "number": "+18888881111;ext=123",
            "_id": "57361284f90e15957c8b4569",
            "_created_user": "5679cdb609da69d90c8b4577",
            "primary": true,
            "country": "29f678bca33e6a07d9d61066",
            "type": "3a9158c55c954ed42dad0861",
            "_key": 0
          }
        ],
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 0
    }
  },
  "_account": "53f6aa644d2de64fb30000af",
  "_schema": "55b122a3599748249a5b337d",
  "_created_date": "2016-06-02T10:29:52-04:00",
  "from": {
    "user": {
      "_id": "57360e77f90e15c27c8b4567",
      "phones": [
        {
          "number": "+18888881111;ext=123",
          "_id": "57361284f90e15957c8b4569",
          "_created_user": "5679cdb609da69d90c8b4577",
          "primary": true,
          "country": "29f678bca33e6a07d9d61066",
          "type": "3a9158c55c954ed42dad0861",
          "_key": 0
        }
      ],
      "name": {
        "first": "John",
        "last": "Doe"
      }
    },
    "archived": false,
    "flag": false
  }
}

Create conversations

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit conversations

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete conversations

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get conversation

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List conversations

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Events

The events object

Attributes:

Attribute
Description
Information on the user that created this event
_group
id 
Group of events
When was the event last updated
Which user last updated the event
attendees
subdocuments 
Information on who are the attendees on the event, like name, pay_rate and others
billing
subdocument 
Information on the billing, like billing period, currency, payment method and others
duration
float 
Information on the duration of the event
end
datetime 
When does the event ends
expectation
subdocument 
Expectation on the bill amount
location
subdocument 
Location where the event is going to start with information like address and geolocation
location_end
subdocument 
Location where the event is going to end with information like address and geolocation
notes
string 
Notes on the event
patient
subdocument 
Information on the patient
service
subdocument 
Information on the services that apply for this event, like pay rate and others
start
datetime 
Start of the event
stat_holiday
boolean 
If it was on a holiday
status
id 
Status of the event
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "meta": {
    "start": "2016-05-16T04:00:00+00:00",
    "end": "2016-05-25T03:59:59+00:00",
    "visits": {
      "filtered": 0,
      "total": 0
    },
    "duration": {
      "filtered": 0
    },
    "resource": "patients",
    "group": "patients"
  },
  "data": [

  ],
  "resource": {
    "57360e2cf90e15a37b8b45de": {
      "_id": "57360e2cf90e15a37b8b45de"
    },
    "53f6e9ba52b53f0b300005fc": {
      "_id": "53f6e9ba52b53f0b300005fc"
    },
    "53f6e8dd52b53fdb3100023c": {
      "_id": "53f6e8dd52b53fdb3100023c"
    },
    "575acaaaf90e1582768b458b": {
      "_id": "575acaaaf90e1582768b458b"
    },
    "53f6e92852b53f0b30000444": {
      "_id": "53f6e92852b53f0b30000444"
    },
    "53f6e91652b53f0b30000418": {
      "_id": "53f6e91652b53f0b30000418"
    }
  },
  "resources": {
    "users": {
      "57a8ca9d7e00026e298b456c": {
        "_id": "57a8ca9d7e00026e298b456c",
        "role": "5398cbd8888e52e485000146",
        "ext_id": "67KJH48",
        "name": {
          "last": "Verma",
          "first": "Amandeep"
        }
      },
      "5679cdb609da69d90c8b4577": {
        "_id": "5679cdb609da69d90c8b4577",
        "ext_id": "BNUWU93",
        "role": "5398cbd8888e52e485000145",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "57360e77f90e15c27c8b4567": {
        "_id": "57360e77f90e15c27c8b4567",
        "ext_id": "6O0482C",
        "role": "5398cbd8888e52e485000146",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      }
    },
    "locations": [
      {
        "country": "29f678bca33e6a07d9d61066",
        "city": "Kitchener",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "city": "Toronto",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "city": "Bolton"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "city": "Brampton",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "city": "Markham"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "city": "Milton",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "country": "29f678bca33e6a07d9d61066",
        "city": "Thornhill"
      },
      {
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "country": "29f678bca33e6a07d9d61066",
        "city": "North York"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "city": "Mississauga",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "city": "Kitchner",
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      },
      {
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "city": "Waterloo"
      }
    ]
  }
}

Create events

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit events

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete events

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get event

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List events

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Eventsgroups

The eventsgroups object

Attributes:

Attribute
Description
bymonthday
array 
If the event is grouped by month
byweekday
array 
If the event is grouped by week
count
integer 
How many times the event happens
dtstart
date 
Date the event group started
end
datetime 
Dante the event group ends
ends
subdocument 
The ends of the event
events
array 
All the events in that group of events
freq
string 
The frequency in which the event repeats
interval
integer 
The interval in which the event happens
start
datetime 
When the group of events start
until
datetime 
Until when the group of events is supposed to happen
wkst
string 
curl 'http://example.com/api/test'
  -H 'Authorization: key'
[
  {
    "_id": "573f6ad5f90e153e1d8b4577",
    "end": "2016-05-03T12:00:00-04:00",
    "duration": 7200,
    "_group": "573f6ad4f90e153e1d8b4576",
    "start": "2016-05-03T10:00:00-04:00",
    "attendees": [
      {
        "user": {
          "name": {
            "last": "Simmons",
            "first": "Jeanne"
          }
        },
        "_id": "573f6ad5f90e153e1d8b457d",
        "_key": 0
      }
    ],
    "status": "a7f2da8ce2f36c258fb83d90",
    "_deleted": false
  },
  {
    "_id": "573f6ad5f90e153e1d8b4578",
    "duration": 7200,
    "status": "a7f2da8ce2f36c258fb83d90",
    "attendees": [
      {
        "user": {
          "name": {
            "first": "Jeanne",
            "last": "Simmons"
          }
        },
        "_id": "573f6ad5f90e153e1d8b457e",
        "_key": 0
      }
    ],
    "_group": "573f6ad4f90e153e1d8b4576",
    "end": "2016-05-05T12:00:00-04:00",
    "start": "2016-05-05T10:00:00-04:00",
    "_deleted": false
  },
  {
    "_id": "573f6ad5f90e153e1d8b4579",
    "status": "a7f2da8ce2f36c258fb83d90",
    "duration": 7200,
    "end": "2016-05-10T12:00:00-04:00",
    "_group": "573f6ad4f90e153e1d8b4576",
    "start": "2016-05-10T10:00:00-04:00",
    "attendees": [
      {
        "_id": "573f6ad5f90e153e1d8b457f",
        "user": {
          "name": {
            "last": "Simmons",
            "first": "Jeanne"
          }
        },
        "_key": 0
      }
    ],
    "_deleted": false
  },
  {
    "_id": "573f6ad5f90e153e1d8b457a",
    "start": "2016-05-12T10:00:00-04:00",
    "end": "2016-05-12T12:00:00-04:00",
    "attendees": [
      {
        "user": {
          "name": {
            "first": "Jeanne",
            "last": "Simmons"
          }
        },
        "_id": "573f6ad5f90e153e1d8b4580",
        "_key": 0
      }
    ],
    "duration": 7200,
    "_group": "573f6ad4f90e153e1d8b4576",
    "status": "ace1a822daf25bfeb38a30d4",
    "_deleted": false
  },
  {
    "_id": "573f6ad5f90e153e1d8b457b",
    "_group": "573f6ad4f90e153e1d8b4576",
    "attendees": [
      {
        "user": {
          "name": {
            "first": "Jeanne",
            "last": "Simmons"
          }
        },
        "_id": "573f6ad5f90e153e1d8b4581",
        "_key": 0
      }
    ],
    "status": "a7f2da8ce2f36c258fb83d90",
    "start": "2016-05-17T10:00:00-04:00",
    "end": "2016-05-17T12:00:00-04:00",
    "duration": 7200,
    "_deleted": false
  },
  {
    "_id": "573f6ad5f90e153e1d8b457c",
    "status": "ace1a822daf25bfeb38a30d4",
    "attendees": [
      {
        "user": {
          "name": {
            "first": "Jeanne",
            "last": "Simmons"
          }
        },
        "_id": "573f6ad5f90e153e1d8b4582",
        "_key": 0
      }
    ],
    "duration": 7200,
    "end": "2016-05-19T12:00:00-04:00",
    "_group": "573f6ad4f90e153e1d8b4576",
    "start": "2016-05-19T10:00:00-04:00",
    "_deleted": false
  }
]

Create eventsgroups

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit eventsgroups

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete eventsgroups

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get eventsgroup

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List eventsgroups

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Files

The files object

Attributes:

Attribute
Description
_uploaded_date
datetime 
Date in which the file was uploaded
checksum
string 
Checksum number in order to detect errors on the file
content_type
string 
Type of the content of the file
file
string 
The file
name
string 
Name of the file
notes
string 
Notes on the file
type
id 
Type of the file
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "file": "file.pdf",
  "type": "575042e0f90e15f24e8b456b",
  "name": "Mikael's resume",
  "_uploaded_date": "15/04/1451",
  "content_type": "pdf",
  "checksum": "A6F4DS8sa2f316FDA3as1ADSA465fd1s3v1a6dsa1DF4SAdsa1fd65SF"
}

Create files

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit files

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete files

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get file

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List files

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Invoices

The invoices object

Attributes:

Attribute
Description
_closed
boolean 
If the invoice is closed or not
_closed_date
datetime 
Date in which the invoice was closed in case it was closed
User that closed the invoice
account
subdocument 
Information on the account, like name, location and website
amount_due
float 
How much is due to be paid
amount_paid
float 
How much was paid
billing_period
subdocument 
What is the billing period
Date in which the billing period ends
Date in which the billing period starts
cc_invoice
subdocument 
Credit card invoice
claim_number
string 
Contains the number of the claim
client
subdocument 
Information on the client, like for example type, id, email, phone and others
currency
id 
Currency used
due_date
date 
When it is due
footer_message
string 
Message on the footer
from_email
string 
Email used for the invoice
header_message
string 
Message on the header
hst_number
string 
Contains the HST number
Date of the invoice
Type of the invoice
legal_rep
string 
Information on the legal rep
loss_date
date 
Date of loss
method
id 
Method used for the invoice
notes
string 
Notes on the invoice
number
string 
Invoice number
patient
subdocument 
Information on the patient, with email, name, location, phone and others
Method used for the payment
punchcards
subdocuments 
Punchcards information, with bill and others
referred_by
subdocument 
By whom it was referred
sales_rep
subdocument 
Contains information on the sales rep, like his or hers name, office, nickname and others
services
subdocuments 
Contains the services and its informations, like its code, description, pay rate and others
status
id 
Status of the invoice
subtotal
float 
Invoice's subtotal
tax_total
float 
Total taxes
taxes
subdocuments 
Contains the taxes info, like the amount and its label
template
id 
Invoice template
term
subdocument 
Invoice's term
total
float 
Invoice's total
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "573f343af90e15011b8b4576",
  "status": "3aad821f389be2ad5dd2f72f",
  "currency": "158fd9fea21be1043f5f3118",
  "number": "A000000103",
  "billing_period_start_date": "2016-05-02",
  "amount_paid": 0,
  "template": "5361bcbc695af3e0a9634341",
  "invoice_type": "7e1a564dfadc3bd13b251d69",
  "payment_method": "3bd8f8b09e49ee5ebc42eea5",
  "from_email": "support@alaunus.com",
  "footer_message": "Thank you for your business. Please send payment...",
  "due_date": "2016-07-01",
  "_created_date": "2016-05-20T11:58:50-04:00",
  "cc_invoice": {
    "patient": false
  },
  "amount_due": 100,
  "services": [
    {
      "hours": {
        "actual": 28860,
        "bill": 14400,
        "pay": 28860,
        "scheduled": 28800
      },
      "label": "Attendant Care",
      "_service": "536f3444f518db6e5202a32c",
      "description": "Attendant Care: 5/1/2016 - 5/31/2016",
      "bill_rate": {
        "rate": 25,
        "unit": "2c39fd62449c8da26b9b09ac"
      },
      "total": 100,
      "_created_user": "57360e77f90e15c27c8b4567",
      "amount": 4,
      "punchcards": [
        "573e318cf90e1588188b4567",
        "573f3469f90e15791b8b457a",
        "573e32c4f90e15cf178b4573",
        "573f6b69f90e154d1d8b4570"
      ],
      "code": "AC001",
      "color": "#00aa00",
      "_id": "573f343af90e15011b8b4575",
      "_key": 0
    }
  ],
  "legal_rep": "Ivan Boyko",
  "method": "35f16131a2aa09285decbb09",
  "term": {
    "_term": "536f311aaa78d2940c0000f7",
    "term": 30,
    "label": "NET 30"
  },
  "billing_period_end_date": "2016-06-01",
  "billing_period": {
    "period": "f44aaeb99e21a2ea93134762",
    "day": 1
  },
  "_account": "53f6aa644d2de64fb30000af",
  "invoice_date": "2016-06-01",
  "subtotal": 100,
  "tax_total": 0,
  "total": 100,
  "account": {
    "name": {
      "title": "Acme Health Services"
    },
    "website": "www.alaunus.com",
    "location": {
      "_location": "54655d0e52b53f2579000d5a",
      "title": "Toronto Office",
      "phone": {
        "country": "29f678bca33e6a07d9d61066",
        "number": "+19058760572"
      },
      "fax": {
        "country": "29f678bca33e6a07d9d61066",
        "number": "+19058764293"
      },
      "address": {
        "street": "123 King Street",
        "city": "Toronto",
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf"
      }
    },
    "_account": "53f6aa644d2de64fb30000af"
  },
  "_schema": "56e10982199748249ab9f007"
}

Create invoices

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit invoices

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete invoices

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get invoice

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List invoices

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Patients

The patients object

Attributes:

Attribute
Description
_account
id 
_deleted_dates
subdocuments 
Contains the date in which the patient was deleted and its reasons
accounting_id
string 
Contains the accounting id
billing
subdocuments 
Contains all the billing info, like how is the billing period and others
Information on the case coordinator for that patient
ccac
subdocument 
Credit card account of the patient
chart_id
string 
Patient's chart ID
checklist
subdocument 
Patient's checklist
What are the cleaning skills the patient is expecting
contacts
subdocuments 
Emergency contacts with phone number and etc
What are the cooking skills the patient is expecting
Date of birth of the patient
This contains the level of education the patient expects
email
string 
Contains the email of the patient
Ethnicity of the patient
Number of years of experience expected by the patient
experience_with_ages
subdocument 
Experience with range of years expected
files
subdocuments 
Files about the patient
gender
id 
Gender of the patient
general_notes
string 
Notes on the patient
has_pets
boolean 
If the patient has pets
Notes on the patient
is_smoker
boolean 
If the patient is a smoker
languages
subdocuments 
Languages spoken by the patient
legal_rep
string 
Information on the legal rep
Living status of the patient
locations
subdocuments 
Location info, like address and geolocation
The major intersection to the candidate
Marital status of the patient
name
subdocument 
Name of the patient
notes
subdocuments 
Notes on the patient
phones
subdocuments 
All patient's phone numbers and its types
photo
file 
Photo of the patient
problems
subdocuments 
Patient's problems
Who referred that patient
religion
id 
Patient's religion
salary_expectations
subdocument 
How much is the salary
service_date
subdocument 
Service date range
services
subdocuments 
All the services necessary by the patient
ssn
string 
SSN nuber
Date in which the ssn expiry
status
id 
Patient's status
What are the swimming skills the patient is expecting
What kind of transportation is the patient expecting
travel_passport
boolean 
If patient requires a valid travel passport
If the patient has pets, what are the kind of pets
us_visa
boolean 
If patient requires a valid US visa
Education level required by the patient
will_travel
boolean 
If patient will be travelling
work_status
subdocument 
Work status required by tge patient
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "57360e2cf90e15a37b8b45de",
  "problems": [
    {
      "onset_date": "1992-08-18T00:00:00-04:00",
      "_id": "57b7405c6de3adb83e8b4570",
      "diagnosis_date": "2000-08-14T00:00:00-04:00",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "notes": "Needs special care",
      "status": "29958791d23f7ab777b157a7",
      "problem": "Dementia",
      "type": "977f988337dbd6bbeff038fe",
      "_key": 2
    }
  ],
  "name": {
    "first": "Alex",
    "last": "Snow",
    "title": "2e5c84ad927c053c8b7a7657"
  },
  "has_pets": true,
  "education_level": "26cb098b51ca13cc095579a9",
  "living_status": "14063fd9ce471eb4a89e8efb",
  "experience_num_of_years": "576b0816efa3eedd9ff0368b",
  "type_of_pets": "576b1dc8efa3eedd9ff0369c",
  "billing": [

  ],
  "locations": [
    {
      "address": {
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "street": "12 Rosedale Ave",
        "city": "Kitchener",
        "zip": "N2H1J3",
        "lat": 43.443177,
        "lng": -80.4683897,
        "map_img": "https://maps.google.com/maps/api/stati..."
      },
      "primary": true,
      "type": "235a44f0aafaf29a9695a9d3",
      "_id": "57360e2cf90e15a37b8b45d2",
      "_created_user": {
        "_id": "5679cdb609da69d90c8b4577",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "_key": 0
    }
  ],
  "_account": {
    "_id": "53f6aa644d2de64fb30000af",
    "sales_reps": {
      "54bd36371b6d0201298b45cc": {
        "_id": "54bd36371b6d0201298b45cc",
        "ext_id": "BIUT7IF",
        "name": {
          "title": "434939d5fe339e26bbb2d3da",
          "first": "Jane",
          "last": "Smith"
        },
        "office": "54655d0e52b53f2579000d5a",
        "_created_user": "53a8701dd6c8df514f8b459d",
        "_key": 0
      },
      "573f2b9ef90e15421b8b456b": {
        "office": "54655d0e52b53f2579000d5a",
        "_id": "573f2b9ef90e15421b8b456b",
        "_created_user": "57360e77f90e15c27c8b4567",
        "ext_id": "H9JTU0O",
        "accounting_id": "H9JTU0O",
        "name": {
          "last": "Ratcliff",
          "first": "Daniel"
        },
        "_key": 1
      }
    }
  },
  "_schema": "55b1226b599748249a5b335d",
  "experience_with_ages": {
    "age_0_months_3_months": false,
    "age_3_months_1_year": false,
    "age_1_year_3_years": false,
    "age_3_years_6_years": false,
    "age_6_years_10_years": false,
    "age_10_years_15_years": false,
    "age_15_years_more": false
  },
  "status": "3827d82b69c28220db67763d",
  "email": "alex.snow14@alaunus.com",
  "marital_status": "4ac5f4d009ef4dad678b1323",
  "travel_passport": false,
  "date_of_birth": "1962-08-17",
  "legal_rep": "Ivan Boyko",
  "languages": [
    {
      "primary": true,
      "language": "318722ea904dbe2ec1abc659",
      "fluency": "1cc5a6123c0bebd535e5a6ee",
      "_id": "57360e2cf90e15a37b8b45d5",
      "_created_user": {
        "_id": "5679cdb609da69d90c8b4577",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "_key": 0
    }
  ],
  "user_education_level": "18491510e5a178535163b910",
  "cleaning_skill": "576b23abefa3eedd9ff036a8",
  "accounting_id": "R44RERF",
  "religion": "03b630f6212a425cf9f34134",
  "general_notes": "Keys under carpet. Client needs assistance bathing.",
  "files": [

  ],
  "will_travel": false,
  "case_coordinator": {
    "_id": "57360e77f90e15c27c8b4567",
    "name": {
      "first": "John",
      "last": "Doe"
    }
  },
  "ethnicity": "22ec511204f16a70e0bd02fd",
  "contacts": [
    {
      "_created_user": {
        "_id": "5679cdb609da69d90c8b4577",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "emergency": true,
      "name": "Jack Novel",
      "relationship": "Friend",
      "phones": [
        {
          "_created_user": {
            "_id": "5679cdb609da69d90c8b4577",
            "name": {
              "first": "Isaac",
              "last": "Romanov",
              "title": "2e5c84ad927c053c8b7a7657"
            }
          },
          "primary": true,
          "country": "29f678bca33e6a07d9d61066",
          "type": "4d781246adf865e9e117968b",
          "number": "+12063364572",
          "_id": "57360e2cf90e15a37b8b45d3",
          "_key": 57360
        }
      ],
      "_id": "57360e2cf90e15a37b8b45d4",
      "_key": 0
    }
  ],
  "cooking_skill": "576b1e8fefa3eedd9ff036a1",
  "chart_id": "R44RERF",
  "gender": "388057a478772ba4b477d1d7",
  "services": [
    {
      "service": "536f3444f518db6e5202a32c",
      "max_billables": {
        "month": {
          "dollars": 5548.83
        },
        "contract": {
          "dollars": 36000
        }
      },
      "_id": "57b72e76563de14a3f8b456f",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "invoice_to": {
        "type": "518bffa09c79e9cd0f2fbc82",
        "client": {
          "_id": "53f6b931ccdf0519510000fe",
          "employees": {
            "54bd355e6fe5165c1700005e": {
              "name": {
                "title": "2e5c84ad927c053c8b7a7657",
                "first": "Anderson",
                "last": "Smith"
              },
              "office": "53bc6f33f918f12387000000",
              "_created_user": "53a8701dd6c8df514f8b459d",
              "phone": {
                "country": "29f678bca33e6a07d9d61066",
                "number": "+16359961547"
              },
              "email": "anderson.smith@alaunus.com",
              "_id": "54bd355e6fe5165c1700005e",
              "ext_id": "YTQX87S",
              "_key": 0
            }
          },
          "contact_type": "537117bbf518db6e5202a33c",
          "company": {
            "name": {
              "title": "TD General Insurance Company"
            }
          },
          "locations": {
            "53bc6f33f918f12387000000": {
              "address": {
                "state": "baa39fa80fb2f0bbf4d8cfdf",
                "lat": 43.8076048,
                "lng": -79.3381626,
                "street": "3650 Victoria Avenue",
                "country": "29f678bca33e6a07d9d61066",
                "street_extra": "9th Floor",
                "city": "North York",
                "zip": "M2H3P7"
              },
              "_id": "53bc6f33f918f12387000000",
              "_created_user": "53a8701dd6c8df514f8b459d",
              "title": "North York Location",
              "_key": 0
            },
            "53bc6f33f918f12387000001": {
              "address": {
                "street_extra": "4th Floor",
                "city": "Toronto",
                "zip": "M4S3A6",
                "state": "baa39fa80fb2f0bbf4d8cfdf",
                "lat": 43.7043681,
                "lng": -79.3978194,
                "street": "2161 Yonge Street",
                "country": "29f678bca33e6a07d9d61066"
              },
              "_id": "53bc6f33f918f12387000001",
              "_created_user": "53a8701dd6c8df514f8b459d",
              "title": "Toronto Location",
              "_key": 1
            },
            "53bc6f33f918f12387000002": {
              "_created_user": "53a8701dd6c8df514f8b459d",
              "title": "Burlington Location",
              "address": {
                "country": "29f678bca33e6a07d9d61066",
                "street_extra": "Suite 100",
                "city": "Burlington",
                "zip": "L7Y5Y7",
                "state": "baa39fa80fb2f0bbf4d8cfdf",
                "lat": 43.3809104,
                "lng": -79.7698832,
                "street": "5045 South Service Road"
              },
              "_id": "53bc6f33f918f12387000002",
              "_key": 2
            }
          }
        }
      },
      "take_highest_pay": true,
      "bill_rate": {
        "rate": 23.95,
        "unit": "50ab5c594ef4ae57bda03025",
        "taxes": [
          {
            "tax": "536f3405f518db6e5202a32b",
            "_id": "57b72e76563de14a3f8b456e",
            "_created_user": {
              "_id": "57360e77f90e15c27c8b4567",
              "name": {
                "first": "John",
                "last": "Doe"
              }
            },
            "_key": 57
          }
        ]
      },
      "pay_rate": {
        "rate": 13.75,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "min_billable_hours": 2,
      "_key": 1
    }
  ],
  "work_status": {
    "full_time": false,
    "part_time": false,
    "temp": false,
    "on_call": false
  },
  "us_visa": false,
  "is_smoker": true,
  "phones": [
    {
      "notes": "Call after 5 p.m.",
      "number": "+14056286752;ext=11",
      "_id": "57360e2cf90e15a37b8b45d1",
      "_created_user": {
        "_id": "5679cdb609da69d90c8b4577",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "primary": true,
      "country": "29f678bca33e6a07d9d61066",
      "type": "4d781246adf865e9e117968b",
      "_key": 0
    }
  ],
  "_created_date": "2016-05-13T13:26:04-04:00",
  "transportation": "576b0594efa3eedd9ff03687"
}

Create patients

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit patients

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete patients

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get patient

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List patients

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Patientsprogressnotes

The patientsprogressnotes object

Attributes:

Attribute
Description
Date in which the progress note was created
Which user created the progress note
If it was deleted
Last date note was updated
Last user that updated the note
approval
subdocument 
If it was approved and the date
invoice_to
subdocument 
For whom is the invoice
note
string 
The note itself
patient
id 
Patient ID
Patient's services
priority
id 
The priority of the note
private
boolean 
If the note is private or not
referrer
id 
Who referred
service
id 
The service that was tagged
tags
subdocuments 
Tags of the note
title
string 
The title of the note
users
subdocuments 
Tagged users on the note
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "57b739937e0002bc408b457e",
  "users": {
    "57b739937e0002bc408b457d": {
      "user": {
        "_id": "53f6b74b6396a0d27200004b",
        "ext_id": "S1HII3J",
        "name": {
          "first": "Bernard",
          "last": "Rodriguez",
          "title": "2e5c84ad927c053c8b7a7657"
        },
        "photo": "53f6b74b6396a0d27200004a"
      },
      "_id": "57b739937e0002bc408b457d",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "ext_id": "6O0482C",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 0
    }
  },
  "note": "Client called On Call at 5:30pm asking for a PSW...",
  "_account": "53f6aa644d2de64fb30000af",
  "_last_updated_date": "2016-08-19T14:17:24-04:00",
  "priority": "5f13306723ef2a2f494b359c",
  "patient": "57360e2cf90e15a37b8b45de",
  "_created_user": {
    "_id": "57360e77f90e15c27c8b4567",
    "ext_id": "6O0482C",
    "name": {
      "first": "John",
      "last": "Doe"
    }
  },
  "tags": {
    "57b74d347e0002bc408b457f": {
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "ext_id": "6O0482C",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "tag": {
        "_id": "57b73a617e0002c4408b4576",
        "title": "Quality Check"
      },
      "_id": "57b74d347e0002bc408b457f",
      "_key": 0
    },
    "57b74d347e0002bc408b4580": {
      "tag": {
        "_id": "57b72d1c6de3adc23e8b4567",
        "title": "Shift Cancelation"
      },
      "_id": "57b74d347e0002bc408b4580",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "ext_id": "6O0482C",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 1
    },
    "57b74d347e0002bc408b4581": {
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "ext_id": "6O0482C",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "tag": {
        "_id": "573f93dbf90e154d1d8b457b",
        "title": "Service Change"
      },
      "_id": "57b74d347e0002bc408b4581",
      "_key": 2
    }
  },
  "service": {
    "_id": "536f3444f518db6e5202a32c",
    "code": "AC001",
    "color": "#00aa00",
    "_key": 0
  },
  "invoice_to": {
    "client": "53f6b931ccdf0519510000fe",
    "type": "518bffa09c79e9cd0f2fbc82"
  },
  "_schema": "55b12264599748249a5b335a",
  "_created_date": "2016-08-19T12:53:39-04:00",
  "_last_updated_user": {
    "_id": "57360e77f90e15c27c8b4567",
    "ext_id": "6O0482C",
    "name": {
      "first": "John",
      "last": "Doe"
    }
  },
  "private": true,
  "patient_service": "57b72e76563de14a3f8b456f"
}

Create patientsprogressnotes

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit patientsprogressnotes

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete patientsprogressnotes

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get patientsprogressnote

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List patientsprogressnotes

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Payments

The payments object

Attributes:

Attribute
Description
amount
float 
Amount paid
client
id 
Who made the payment
date
datetime 
Date of the payment
invoice
id 
Invoice for the payment
notes
string 
Notes on the payment
curl 'http://example.com/api/test'
  -H 'Authorization: key'

Create payments

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit payments

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete payments

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get payment

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List payments

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Payrolls

The payrolls object

Attributes:

Attribute
Description
_closed
boolean 
If payroll was closed or not
_closed_date
datetime 
Date when payroll was closed
User that closed the payroll
end
date 
End date
period_extra
integer 
Extra period
Type of the period
start
date 
Start date
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "573f6b91f90e15ac1b8b4584",
  "_account": "53f6aa644d2de64fb30000af",
  "payroll": {
    "_id": "5726f997f90e15f2428b45c3",
    "start": "2016-05-02",
    "end": "2016-06-01"
  },
  "user": {
    "_user": "53f6b4a43fae5b667c000076",
    "name": {
      "first": "Jeanne",
      "last": "Simmons"
    },
    "services": {
      "574fd818f90e151d4d8b4575": {
        "pay_rate": {
          "rate": 13.12,
          "unit": "50ab5c594ef4ae57bda03025"
        },
        "_service": {
          "service": "536f3444f518db6e5202a32c",
          "pay_rate": {
            "rate": 13.12,
            "unit": "50ab5c594ef4ae57bda03025"
          },
          "_id": "53f6b51795370f425b00007c",
          "_key": 0
        },
        "account_service": "536f3444f518db6e5202a32c",
        "code": "AC001",
        "color": "#00aa00",
        "label": "Attendant Care",
        "_id": "574fd818f90e151d4d8b4575",
        "_key": 0
      },
      "574fd818f90e151d4d8b4576": {
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "_service": {
          "service": "53a37d11056553f52d00000f",
          "pay_rate": {
            "rate": 32,
            "unit": "2c39fd62449c8da26b9b09ac"
          },
          "_id": "53f6b51e3fae5bfa78000084",
          "_key": 1
        },
        "account_service": "53a37d11056553f52d00000f",
        "code": "RPN001",
        "color": "#00ccff",
        "label": "Registered Practical Nurse",
        "_id": "574fd818f90e151d4d8b4576",
        "_key": 1
      },
      "574fd818f90e151d4d8b4577": {
        "pay_rate": {
          "rate": 31,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "_service": {
          "service": "536f3627f518db6e5202a32e",
          "pay_rate": {
            "rate": 31,
            "unit": "2c39fd62449c8da26b9b09ac"
          },
          "_id": "53f6b5263fae5b667c000088",
          "_key": 2
        },
        "account_service": "536f3627f518db6e5202a32e",
        "code": "RN001",
        "color": "#aa00aa",
        "label": "Nursing",
        "_id": "574fd818f90e151d4d8b4577",
        "_key": 2
      },
      "574fd818f90e151d4d8b4578": {
        "pay_rate": {
          "rate": 44,
          "unit": "50ab5c594ef4ae57bda03025"
        },
        "_service": {
          "service": "5398cbbdd6d01fec78000039",
          "pay_rate": {
            "rate": 44,
            "unit": "50ab5c594ef4ae57bda03025"
          },
          "_id": "54008f421c2c61517a8b4843",
          "_key": 3
        },
        "account_service": "5398cbbdd6d01fec78000039",
        "code": "RSW001",
        "color": "#5484ED",
        "label": "Medical Rehab",
        "_id": "574fd818f90e151d4d8b4578",
        "_key": 3
      }
    }
  },
  "punchcards": [
    {
      "_id": "573f6b91f90e15ac1b8b4583",
      "actual": {
        "manager": {
          "start": "2016-05-17T10:00:00-04:00",
          "verified_start": true,
          "verified_start_date": "2016-05-20T15:54:57-04:00",
          "verified_start_manager": "57360e77f90e15c27c8b4567",
          "end": "2016-05-17T12:00:00-04:00",
          "verified_end": true,
          "verified_end_date": "2016-05-20T15:54:57-04:00",
          "verified_end_manager": "57360e77f90e15c27c8b4567"
        },
        "start": "2016-05-17T10:00:00-04:00",
        "end": "2016-05-17T12:00:00-04:00",
        "duration": 7200,
        "completed": "2016-05-20T15:54:57-04:00"
      },
      "pay": {
        "start": "2016-05-17T10:00:00-04:00",
        "end": "2016-05-17T12:00:00-04:00",
        "duration": 3600,
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        }
      },
      "event": "573f6ad5f90e153e1d8b457b",
      "_event": {
        "duration": 7200,
        "_deleted": false
      },
      "patient": {
        "_patient": "53f6e8dd52b53fdb3100023c",
        "name": {
          "first": "Gabriella",
          "last": "Gonzalez"
        }
      },
      "location": {
        "address": {
          "street": "6440 Copper Falls Ave",
          "city": "Thornhill"
        }
      },
      "service": {
        "account_service": "53a37d11056553f52d00000f",
        "code": "RPN001",
        "color": "#00ccff",
        "invoice_to": {
          "type": "518bffa09c79e9cd0f2fbc82",
          "client": {
            "_id": "53f6b9590f0905a1240000f0",
            "company": {
              "name": {
                "title": "State Farm Insurance"
              }
            }
          }
        }
      },
      "payroll": {
        "_payroll": "5726f997f90e15f2428b45c3"
      },
      "invoice": {
        "_invoice": {
          "_id": "573f6b92f90e15ac1b8b4587",
          "number": "A000000106"
        }
      },
      "_deleted": false
    },
    {
      "_id": "573f6d57f90e158e1d8b4569",
      "actual": {
        "manager": {
          "start": "2016-05-10T10:00:00-04:00",
          "verified_start": true,
          "verified_start_date": "2016-05-20T16:02:31-04:00",
          "verified_start_manager": "57360e77f90e15c27c8b4567",
          "end": "2016-05-10T12:00:00-04:00",
          "verified_end": true,
          "verified_end_date": "2016-05-20T16:02:31-04:00",
          "verified_end_manager": "57360e77f90e15c27c8b4567"
        },
        "start": "2016-05-10T10:00:00-04:00",
        "end": "2016-05-10T12:00:00-04:00",
        "duration": 7200,
        "completed": "2016-05-20T16:02:31-04:00"
      },
      "pay": {
        "start": "2016-05-10T10:00:00-04:00",
        "end": "2016-05-10T12:00:00-04:00",
        "duration": 3600,
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        }
      },
      "event": "573f6ad5f90e153e1d8b4579",
      "_event": {
        "duration": 7200,
        "_deleted": false
      },
      "patient": {
        "_patient": "53f6e8dd52b53fdb3100023c",
        "name": {
          "first": "Gabriella",
          "last": "Gonzalez"
        }
      },
      "location": {
        "address": {
          "street": "6440 Copper Falls Ave",
          "city": "Thornhill"
        }
      },
      "service": {
        "account_service": "53a37d11056553f52d00000f",
        "code": "RPN001",
        "color": "#00ccff",
        "invoice_to": {
          "type": "518bffa09c79e9cd0f2fbc82",
          "client": {
            "_id": "53f6b9590f0905a1240000f0",
            "company": {
              "name": {
                "title": "State Farm Insurance"
              }
            }
          }
        }
      },
      "payroll": {
        "_payroll": "5726f997f90e15f2428b45c3"
      },
      "invoice": {
        "_invoice": {
          "_id": "573f6b92f90e15ac1b8b4587",
          "number": "A000000106"
        }
      },
      "_deleted": false
    },
    {
      "_id": "573f6dd0f90e15251e8b4574",
      "actual": {
        "manager": {
          "start": "2016-05-05T10:00:00-04:00",
          "verified_start": true,
          "verified_start_date": "2016-05-20T16:04:32-04:00",
          "verified_start_manager": "57360e77f90e15c27c8b4567",
          "end": "2016-05-05T12:00:00-04:00",
          "verified_end": true,
          "verified_end_date": "2016-05-20T16:04:32-04:00",
          "verified_end_manager": "57360e77f90e15c27c8b4567"
        },
        "start": "2016-05-05T10:00:00-04:00",
        "end": "2016-05-05T12:00:00-04:00",
        "duration": 7200,
        "completed": "2016-05-20T16:04:32-04:00"
      },
      "pay": {
        "start": "2016-05-05T10:00:00-04:00",
        "end": "2016-05-05T12:00:00-04:00",
        "duration": 3600,
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        }
      },
      "event": "573f6ad5f90e153e1d8b4578",
      "_event": {
        "duration": 7200,
        "_deleted": false
      },
      "patient": {
        "_patient": "53f6e8dd52b53fdb3100023c",
        "name": {
          "first": "Gabriella",
          "last": "Gonzalez"
        }
      },
      "location": {
        "address": {
          "street": "6440 Copper Falls Ave",
          "city": "Thornhill"
        }
      },
      "service": {
        "account_service": "53a37d11056553f52d00000f",
        "code": "RPN001",
        "color": "#00ccff",
        "invoice_to": {
          "type": "518bffa09c79e9cd0f2fbc82",
          "client": {
            "_id": "53f6b9590f0905a1240000f0",
            "company": {
              "name": {
                "title": "State Farm Insurance"
              }
            }
          }
        }
      },
      "payroll": {
        "_payroll": "5726f997f90e15f2428b45c3"
      },
      "invoice": {
        "_invoice": {
          "_id": "573f6b92f90e15ac1b8b4587",
          "number": "A000000106"
        }
      },
      "_deleted": false
    },
    {
      "_id": "573f6e12f90e15381e8b4567",
      "actual": {
        "manager": {
          "start": "2016-05-03T10:00:00-04:00",
          "verified_start": true,
          "verified_start_date": "2016-05-20T16:05:37-04:00",
          "verified_start_manager": "57360e77f90e15c27c8b4567",
          "end": "2016-05-03T12:00:00-04:00",
          "verified_end": true,
          "verified_end_date": "2016-05-20T16:05:37-04:00",
          "verified_end_manager": "57360e77f90e15c27c8b4567"
        },
        "start": "2016-05-03T10:00:00-04:00",
        "end": "2016-05-03T12:00:00-04:00",
        "duration": 7200,
        "completed": "2016-05-20T16:05:37-04:00"
      },
      "pay": {
        "start": "2016-05-03T10:00:00-04:00",
        "end": "2016-05-03T12:00:00-04:00",
        "duration": 3600,
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        }
      },
      "event": "573f6ad5f90e153e1d8b4577",
      "_event": {
        "duration": 7200,
        "_deleted": false
      },
      "patient": {
        "_patient": "53f6e8dd52b53fdb3100023c",
        "name": {
          "first": "Gabriella",
          "last": "Gonzalez"
        }
      },
      "location": {
        "address": {
          "street": "6440 Copper Falls Ave",
          "city": "Thornhill"
        }
      },
      "service": {
        "account_service": "53a37d11056553f52d00000f",
        "code": "RPN001",
        "color": "#00ccff",
        "invoice_to": {
          "type": "518bffa09c79e9cd0f2fbc82",
          "client": {
            "_id": "53f6b9590f0905a1240000f0",
            "company": {
              "name": {
                "title": "State Farm Insurance"
              }
            }
          }
        }
      },
      "payroll": {
        "_payroll": "5726f997f90e15f2428b45c3"
      },
      "invoice": {
        "_invoice": {
          "_id": "573f6b92f90e15ac1b8b4587",
          "number": "A000000106"
        }
      },
      "_deleted": false
    }
  ],
  "_schema": "55b1224e599748249a5b334f",
  "_created_date": "2016-05-20T15:54:57-04:00",
  "_created_user": {
    "_id": "57360e77f90e15c27c8b4567",
    "ext_id": "6O0482C",
    "accounting_id": "6O0482C",
    "services": {
      "57361206f90e15b07a8b4580": {
        "service": "536f3444f518db6e5202a32c",
        "pay_rate": {
          "rate": 15,
          "unit": "50ab5c594ef4ae57bda03025"
        },
        "_id": "57361206f90e15b07a8b4580",
        "_key": 0
      },
      "573f18fef90e15f6178b4588": {
        "service": "53a37d11056553f52d00000f",
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "_id": "573f18fef90e15f6178b4588",
        "_key": 1
      },
      "573f1934f90e15d3198b4573": {
        "service": "536f3627f518db6e5202a32e",
        "pay_rate": {
          "rate": 31,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "_id": "573f1934f90e15d3198b4573",
        "_key": 2
      }
    }
  },
  "total": 14400,
  "visits": 4,
  "services": [
    {
      "account_service": "53a37d11056553f52d00000f",
      "code": "RPN001",
      "color": "#00ccff",
      "total": 14400
    }
  ],
  "name": "Jeanne Simmons",
  "accounting_id": "1KC9KK0",
  "user_services": {
    "53f6b51795370f425b00007c": {
      "service": "536f3444f518db6e5202a32c",
      "pay_rate": {
        "rate": 13.12,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "_id": "53f6b51795370f425b00007c",
      "_key": 0
    },
    "53f6b51e3fae5bfa78000084": {
      "service": "53a37d11056553f52d00000f",
      "pay_rate": {
        "rate": 32,
        "unit": "2c39fd62449c8da26b9b09ac"
      },
      "_id": "53f6b51e3fae5bfa78000084",
      "_key": 1
    },
    "53f6b5263fae5b667c000088": {
      "service": "536f3627f518db6e5202a32e",
      "pay_rate": {
        "rate": 31,
        "unit": "2c39fd62449c8da26b9b09ac"
      },
      "_id": "53f6b5263fae5b667c000088",
      "_key": 2
    },
    "54008f421c2c61517a8b4843": {
      "service": "5398cbbdd6d01fec78000039",
      "pay_rate": {
        "rate": 44,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "_id": "54008f421c2c61517a8b4843",
      "_key": 3
    }
  }
}

Create payrolls

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit payrolls

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete payrolls

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get payroll

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List payrolls

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Payrollsusers

The payrollsusers object

Attributes:

Attribute
Description
The date it was created
The user that created it
adjustments
subdocuments 
ADjustments information
payroll
id 
Payroll information
punchcards
array 
Punchcards information, with bill and others
user
subdocument 
User information, like name, nickname and others
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "totalPayrollUsersHours": 216060,
  "totalPayrollUsersVisits": 45,
  "payrollUsers": [
    {
      "_id": "573f69baf90e159a1b8b4599",
      "user": {
        "_user": "53f6b44595370fd468000058",
        "name": {
          "first": "Edith",
          "last": "Peters"
        },
        "services": {
          "574fd818f90e151d4d8b456a": {
            "pay_rate": {
              "rate": 13.12,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "53f6b44f6396a0925300004e",
            "account_service": "536f3444f518db6e5202a32c",
            "code": "AC001",
            "color": "#00aa00",
            "label": "Attendant Care",
            "_id": "574fd818f90e151d4d8b456a",
            "_key": 0
          },
          "574fd818f90e151d4d8b456b": {
            "pay_rate": {
              "rate": 32,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "54d10ee86cd75277628b4577",
            "account_service": "53a37d11056553f52d00000f",
            "code": "RPN001",
            "color": "#00ccff",
            "label": "Registered Practical Nurse",
            "_id": "574fd818f90e151d4d8b456b",
            "_key": 1
          },
          "574fd818f90e151d4d8b456c": {
            "pay_rate": {
              "rate": 13,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "54d10f603015ddbe0a8b48c5",
            "account_service": "5400f203ab176cc61e000542",
            "code": "THR",
            "color": "#FBD75B",
            "label": "Therapy Services",
            "_id": "574fd818f90e151d4d8b456c",
            "_key": 2
          }
        }
      },
      "total": 14400,
      "visits": 4,
      "services": [
        {
          "account_service": "53a37d11056553f52d00000f",
          "code": "RPN001",
          "color": "#00ccff",
          "total": 14400
        }
      ],
      "name": "Edith Peters",
      "accounting_id": "JVPJ6K2"
    },
    {
      "_id": "573f69f4f90e15e01b8b4581",
      "user": {
        "_user": "53f6b6f33fae5b667c0000bb",
        "name": {
          "first": "Marc",
          "last": "Brooks"
        },
        "services": {
          "574fd818f90e151d4d8b456d": {
            "pay_rate": {
              "rate": 31,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "53f6b6fc3fae5bfa780000b2",
            "account_service": "536f3627f518db6e5202a32e",
            "code": "RN001",
            "color": "#aa00aa",
            "label": "Nursing",
            "_id": "574fd818f90e151d4d8b456d",
            "_key": 0
          }
        }
      },
      "total": 28800,
      "visits": 8,
      "services": [
        {
          "account_service": "536f3627f518db6e5202a32e",
          "code": "RN001",
          "color": "#aa00aa",
          "total": 28800
        }
      ],
      "name": "Marc Brooks",
      "accounting_id": "TUC9OUO"
    },
    {
      "_id": "573f6bcbf90e15ec1b8b4580",
      "user": {
        "_user": "53f6b54995370f425b000082",
        "name": {
          "first": "Harry",
          "last": "Knight"
        },
        "services": {
          "574fd818f90e151d4d8b4571": {
            "pay_rate": {
              "rate": 13.12,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "53f6b5523fae5bfa7800008b",
            "account_service": "536f3444f518db6e5202a32c",
            "code": "AC001",
            "color": "#00aa00",
            "label": "Attendant Care",
            "_id": "574fd818f90e151d4d8b4571",
            "_key": 0
          }
        }
      },
      "total": 54000,
      "visits": 5,
      "services": [
        {
          "account_service": "536f3444f518db6e5202a32c",
          "code": "AC001",
          "color": "#00aa00",
          "total": 54000
        }
      ],
      "name": "Harry Knight",
      "accounting_id": "8NATD0Y"
    },
    {
      "_id": "573f6b91f90e15ac1b8b4584",
      "user": {
        "_user": "53f6b4a43fae5b667c000076",
        "name": {
          "first": "Jeanne",
          "last": "Simmons"
        },
        "services": {
          "574fd818f90e151d4d8b4575": {
            "pay_rate": {
              "rate": 13.12,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "53f6b51795370f425b00007c",
            "account_service": "536f3444f518db6e5202a32c",
            "code": "AC001",
            "color": "#00aa00",
            "label": "Attendant Care",
            "_id": "574fd818f90e151d4d8b4575",
            "_key": 0
          },
          "574fd818f90e151d4d8b4576": {
            "pay_rate": {
              "rate": 32,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "53f6b51e3fae5bfa78000084",
            "account_service": "53a37d11056553f52d00000f",
            "code": "RPN001",
            "color": "#00ccff",
            "label": "Registered Practical Nurse",
            "_id": "574fd818f90e151d4d8b4576",
            "_key": 1
          },
          "574fd818f90e151d4d8b4577": {
            "pay_rate": {
              "rate": 31,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "53f6b5263fae5b667c000088",
            "account_service": "536f3627f518db6e5202a32e",
            "code": "RN001",
            "color": "#aa00aa",
            "label": "Nursing",
            "_id": "574fd818f90e151d4d8b4577",
            "_key": 2
          },
          "574fd818f90e151d4d8b4578": {
            "pay_rate": {
              "rate": 44,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "54008f421c2c61517a8b4843",
            "account_service": "5398cbbdd6d01fec78000039",
            "code": "RSW001",
            "color": "#5484ED",
            "label": "Medical Rehab",
            "_id": "574fd818f90e151d4d8b4578",
            "_key": 3
          }
        }
      },
      "total": 14400,
      "visits": 4,
      "services": [
        {
          "account_service": "53a37d11056553f52d00000f",
          "code": "RPN001",
          "color": "#00ccff",
          "total": 14400
        }
      ],
      "name": "Jeanne Simmons",
      "accounting_id": "1KC9KK0"
    },
    {
      "_id": "573f6b81f90e15111d8b456f",
      "user": {
        "_user": "53f6b74b6396a0d27200004b",
        "name": {
          "first": "Bernard",
          "last": "Rodriguez"
        },
        "services": {
          "574fd818f90e151d4d8b456e": {
            "pay_rate": {
              "rate": 13.5,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "53f6b7536396a0d272000050",
            "account_service": "536f3444f518db6e5202a32c",
            "code": "AC001",
            "color": "#00aa00",
            "label": "Attendant Care",
            "_id": "574fd818f90e151d4d8b456e",
            "_key": 0
          },
          "574fd818f90e151d4d8b456f": {
            "pay_rate": {
              "rate": 17,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "53f6b75a3fae5bfa780000bd",
            "account_service": "5398cb8304fff5090c00002e",
            "code": "HK001",
            "color": "#FFB878",
            "label": "Housekeeping",
            "_id": "574fd818f90e151d4d8b456f",
            "_key": 1
          },
          "574fd818f90e151d4d8b4570": {
            "pay_rate": {
              "rate": 32,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "53f78c2252b53f9e38000575",
            "account_service": "53a37d11056553f52d00000f",
            "code": "RPN001",
            "color": "#00ccff",
            "label": "Registered Practical Nurse",
            "_id": "574fd818f90e151d4d8b4570",
            "_key": 2
          }
        }
      },
      "total": 50400,
      "visits": 14,
      "services": [
        {
          "account_service": "536f3444f518db6e5202a32c",
          "code": "AC001",
          "color": "#00aa00",
          "total": 28800
        },
        {
          "account_service": "53a37d11056553f52d00000f",
          "code": "RPN001",
          "color": "#00ccff",
          "total": 21600
        }
      ],
      "name": "Bernard Rodriguez",
      "accounting_id": "S1HII3J"
    },
    {
      "_id": "573e318cf90e1588188b4568",
      "user": {
        "_user": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        },
        "services": {
          "574fd818f90e151d4d8b4572": {
            "pay_rate": {
              "rate": 15,
              "unit": "50ab5c594ef4ae57bda03025"
            },
            "_service": "57361206f90e15b07a8b4580",
            "account_service": "536f3444f518db6e5202a32c",
            "code": "AC001",
            "color": "#00aa00",
            "label": "Attendant Care",
            "_id": "574fd818f90e151d4d8b4572",
            "_key": 0
          },
          "574fd818f90e151d4d8b4573": {
            "pay_rate": {
              "rate": 32,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "573f18fef90e15f6178b4588",
            "account_service": "53a37d11056553f52d00000f",
            "code": "RPN001",
            "color": "#00ccff",
            "label": "Registered Practical Nurse",
            "_id": "574fd818f90e151d4d8b4573",
            "_key": 1
          },
          "574fd818f90e151d4d8b4574": {
            "pay_rate": {
              "rate": 31,
              "unit": "2c39fd62449c8da26b9b09ac"
            },
            "_service": "573f1934f90e15d3198b4573",
            "account_service": "536f3627f518db6e5202a32e",
            "code": "RN001",
            "color": "#aa00aa",
            "label": "Nursing",
            "_id": "574fd818f90e151d4d8b4574",
            "_key": 2
          }
        }
      },
      "total": 54060,
      "visits": 10,
      "services": [
        {
          "account_service": "536f3444f518db6e5202a32c",
          "code": "AC001",
          "color": "#00aa00",
          "total": 54060
        }
      ],
      "name": "John Doe",
      "accounting_id": "6O0482C"
    }
  ],
  "filteredPayrollUsersHours": 216060,
  "filteredPayrollUsersVisits": 45
}

Create payrollsusers

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit payrollsusers

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete payrollsusers

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get payrollsuser

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List payrollsusers

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Punchcards

The punchcards object

Attributes:

Attribute
Description
_event
subdocument 
Punchcard's event
actual
subdocument 
Actual information, with actual date and others
bill
subdocument 
Punchcard's bill
billing
subdocument 
All billing info on the punchcards
event
id 
Punchcard's event ID
invoice
subdocument 
Punchcard's invoice
location
subdocument 
Punchcard's location
location_end
subdocument 
The end location for that punchcard
patient
subdocument 
Patient on the punchcard
pay
subdocument 
All the paying information on that punchcard
payroll
subdocument 
Payroll on the punchcard
service
subdocument 
Information about the service on that punchcard
stat_holiday
boolean 
If it is or not an statutory holiday
user
subdocument 
The user on that punchcard and his or hers information
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "573a20d3f90e15de078b4570",
  "_created_user": {
    "_id": "5679cdb609da69d90c8b4577",
    "name": {
      "first": "Isaac",
      "last": "Romanov",
      "title": "2e5c84ad927c053c8b7a7657"
    }
  },
  "_last_updated_user": "5398bdb769aed1910a0000b1",
  "patient": {
    "_patient": {
      "_id": "57360e2cf90e15a37b8b45de",
      "chart_id": "R44RERF",
      "name": {
        "first": "Alex",
        "last": "Snow",
        "title": "2e5c84ad927c053c8b7a7657"
      },
      "date_of_birth": "1962-08-17",
      "gender": "388057a478772ba4b477d1d7",
      "general_notes": "Keys under carpet. Client needs...",
      "phones": {
        "57360e2cf90e15a37b8b45d1": {
          "primary": true,
          "country": "29f678bca33e6a07d9d61066",
          "type": "4d781246adf865e9e117968b",
          "notes": "Call after 5 p.m.",
          "number": "+14056286752;ext=11",
          "_id": "57360e2cf90e15a37b8b45d1",
          "_created_user": "5679cdb609da69d90c8b4577",
          "_key": 0
        }
      },
      "locations": {
        "57360e2cf90e15a37b8b45d2": {
          "address": {
            "country": "29f678bca33e6a07d9d61066",
            "state": "baa39fa80fb2f0bbf4d8cfdf",
            "street": "12 Rosedale Ave",
            "city": "Kitchener",
            "zip": "N2H1J3",
            "lat": 43.443177,
            "lng": -80.4683897,
            "map_img": "https://maps.google.com/maps/api/static..."
          },
          "primary": true,
          "type": "235a44f0aafaf29a9695a9d3",
          "_id": "57360e2cf90e15a37b8b45d2",
          "_created_user": "5679cdb609da69d90c8b4577",
          "_key": 0
        }
      },
      "services": {
        "57360e2cf90e15a37b8b45d6": {
          "invoice_to": {
            "type": "2f3b211669c6c8bc5903935e"
          },
          "take_highest_pay": true,
          "treatment_date": "2016-02-07",
          "service": "536f3444f518db6e5202a32c",
          "bill_rate": {
            "rate": 25,
            "unit": "2c39fd62449c8da26b9b09ac"
          },
          "pay_rate": {
            "rate": 15,
            "unit": "50ab5c594ef4ae57bda03025"
          },
          "_id": "57360e2cf90e15a37b8b45d6",
          "_created_user": "5679cdb609da69d90c8b4577",
          "_deleted": true,
          "_key": 0
        },
        "57b72e76563de14a3f8b456f": {
          "invoice_to": {
            "type": "518bffa09c79e9cd0f2fbc82",
            "client": {
              "_id": "53f6b931ccdf0519510000fe",
              "contact_type": "537117bbf518db6e5202a33c",
              "company": {
                "name": {
                  "title": "TD General Insurance Company"
                }
              }
            }
          },
          "take_highest_pay": true,
          "service": "536f3444f518db6e5202a32c",
          "bill_rate": {
            "rate": 23.95,
            "unit": "50ab5c594ef4ae57bda03025",
            "taxes": {
              "57b72e76563de14a3f8b456e": {
                "tax": "536f3405f518db6e5202a32b",
                "_id": "57b72e76563de14a3f8b456e",
                "_created_user": "57360e77f90e15c27c8b4567"
              }
            }
          },
          "pay_rate": {
            "rate": 13.75,
            "unit": "50ab5c594ef4ae57bda03025"
          },
          "min_billable_hours": 2,
          "max_billables": {
            "month": {
              "dollars": 5548.83
            },
            "contract": {
              "dollars": 36000
            }
          },
          "_id": "57b72e76563de14a3f8b456f",
          "_created_user": "57360e77f90e15c27c8b4567",
          "_key": 1
        },
        "57ead5e17e00025c088b456b": {
          "invoice_to": {
            "type": "2f3b211669c6c8bc5903935e"
          },
          "service": "536f3627f518db6e5202a32e",
          "bill_rate": {
            "rate": 150,
            "unit": "2c39fd62449c8da26b9b09ac"
          },
          "_id": "57ead5e17e00025c088b456b",
          "_created_user": "57360e77f90e15c27c8b4567",
          "_deleted": true,
          "_key": 2
        }
      }
    },
    "name": {
      "last": "Snow",
      "first": "Alex"
    },
    "email": "test1@alaunus.com",
    "legal_rep": "Ivan Boyko",
    "general_notes": "Keys under carpet"
  },
  "service": {
    "stat_holiday_multiplier": 1.5,
    "_service": {
      "invoice_to": {
        "type": "2f3b211669c6c8bc5903935e"
      },
      "take_highest_pay": true,
      "treatment_date": "2016-02-07",
      "service": "536f3444f518db6e5202a32c",
      "bill_rate": {
        "rate": 25,
        "unit": "2c39fd62449c8da26b9b09ac"
      },
      "pay_rate": {
        "rate": 15,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "_id": "57360e2cf90e15a37b8b45d6",
      "_created_user": "5679cdb609da69d90c8b4577",
      "_deleted": true,
      "_key": 0
    },
    "account_service": "536f3444f518db6e5202a32c",
    "color": "#00aa00",
    "invoice_to": {
      "type": "2f3b211669c6c8bc5903935e"
    },
    "bill_rate": {
      "rate": 25,
      "unit": "2c39fd62449c8da26b9b09ac"
    },
    "take_highest_pay": true,
    "label": "Attendant Care",
    "code": "AC001",
    "pay_rate": {
      "rate": 15,
      "unit": "50ab5c594ef4ae57bda03025"
    }
  },
  "_group": "573a20d3f90e15de078b456e",
  "attendees": [
    {
      "user": {
        "_user": {
          "_id": "57360e77f90e15c27c8b4567",
          "name": {
            "first": "John",
            "last": "Doe"
          }
        },
        "name": {
          "first": "John",
          "last": "Doe"
        },
        "service": {
          "account_service": "536f3444f518db6e5202a32c",
          "pay_rate": {
            "rate": 15,
            "unit": "50ab5c594ef4ae57bda03025"
          },
          "_service": "57361206f90e15b07a8b4580"
        }
      },
      "status": "a7f2da8ce2f36c258fb83d90",
      "_id": "573a20d5f90e15de078b4589",
      "_created_user": {
        "_id": "5679cdb609da69d90c8b4577",
        "name": {
          "first": "Isaac",
          "last": "Romanov",
          "title": "2e5c84ad927c053c8b7a7657"
        }
      },
      "punchcard": {
        "_id": "573f6b69f90e154d1d8b4570",
        "actual": {
          "manager": {
            "start": "2016-05-17T15:35:00-04:00",
            "verified_start": true,
            "verified_start_date": "2016-05-20T15:54:17-04:00",
            "verified_start_manager": {
              "_id": "57360e77f90e15c27c8b4567",
              "name": {
                "first": "John",
                "last": "Doe"
              }
            },
            "end": "2016-05-17T17:35:00-04:00",
            "verified_end": true,
            "verified_end_date": "2016-05-20T15:54:17-04:00",
            "verified_end_manager": {
              "_id": "57360e77f90e15c27c8b4567",
              "name": {
                "first": "John",
                "last": "Doe"
              }
            }
          },
          "start": "2016-05-17T15:35:00-04:00",
          "end": "2016-05-17T17:35:00-04:00",
          "duration": 7200,
          "completed": "2016-05-20T15:54:17-04:00"
        },
        "bill": {
          "start": "2016-05-17T15:35:00-04:00",
          "end": "2016-05-17T17:35:00-04:00",
          "duration": 3600,
          "bill_rate": {
            "rate": 25,
            "unit": "2c39fd62449c8da26b9b09ac"
          }
        },
        "pay": {
          "start": "2016-05-17T15:35:00-04:00",
          "end": "2016-05-17T17:35:00-04:00",
          "duration": 7200,
          "pay_rate": {
            "rate": 15,
            "unit": "50ab5c594ef4ae57bda03025"
          }
        },
        "stat_holiday": false,
        "payroll": {
          "_payroll": {
            "_id": "5726f997f90e15f2428b45c3",
            "start": "2016-05-02",
            "end": "2016-06-01"
          },
          "audit": {
            "audited": true,
            "audit_date": "2016-06-02T00:00:00-04:00"
          },
          "_removed": false
        },
        "invoice": {
          "_invoice": {
            "_id": "573f343af90e15011b8b4576",
            "invoice_date": "2016-06-01",
            "number": "A000000103"
          },
          "_removed": false
        },
        "_deleted": false
      },
      "_key": 0
    }
  ],
  "_schema": "55dcdc807862c370d5a76245",
  "start": "2016-05-17T15:35:00-04:00",
  "duration": 7200,
  "status": "a7f2da8ce2f36c258fb83d90",
  "_created_date": "2016-05-16T15:34:45-04:00",
  "_last_updated_date": "2016-06-25T20:31:40-04:00",
  "billing": {
    "footer_message": "Thank you for your business. Please send...",
    "_billing": "57360e2cf90e15a37b8b45d0",
    "term": "536f311aaa78d2940c0000f7",
    "invoice_type": "7e1a564dfadc3bd13b251d69",
    "invoice_method": "35f16131a2aa09285decbb09",
    "currency": "158fd9fea21be1043f5f3118",
    "cc_invoice": {
      "patient": false
    },
    "billing_period": {
      "period": "f44aaeb99e21a2ea93134762",
      "day": 1
    },
    "payment_method": "3bd8f8b09e49ee5ebc42eea5"
  },
  "_account": "53f6aa644d2de64fb30000af",
  "location": {
    "_location": {
      "address": {
        "country": "29f678bca33e6a07d9d61066",
        "state": "baa39fa80fb2f0bbf4d8cfdf",
        "street": "12 Rosedale Ave",
        "city": "Kitchener",
        "zip": "N2H1J3",
        "lat": 43.443177,
        "lng": -80.4683897,
        "map_img": "https://maps.google.com/maps/api/static..."
      },
      "primary": true,
      "type": "235a44f0aafaf29a9695a9d3",
      "_id": "57360e2cf90e15a37b8b45d2",
      "_created_user": "5679cdb609da69d90c8b4577",
      "_key": 0
    },
    "type": "235a44f0aafaf29a9695a9d3",
    "address": {
      "country": "29f678bca33e6a07d9d61066",
      "state": "baa39fa80fb2f0bbf4d8cfdf",
      "street": "12 Rosedale Ave",
      "city": "Kitchener",
      "zip": "N2H1J3",
      "lat": 43.443177,
      "lng": -80.4683897,
      "map_img": "https://maps.google.com/maps/api/static..."
    }
  },
  "end": "2016-05-17T17:35:00-04:00",
  "stat_holiday": false,
  "_deleted": false
}

Create punchcards

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit punchcards

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete punchcards

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get punchcard

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List punchcards

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Skills

The skills object

Attributes:

Attribute
Description
color
string 
Color of the skill
description
string 
Description of the skill
title
string 
Title of the skill
curl 'http://example.com/api/test'
  -H 'Authorization: key'

Create skills

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit skills

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete skills

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get skill

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List skills

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Tags

The tags object

Attributes:

Attribute
Description
color
string 
Color of the tag
description
string 
Description of the tag
title
string 
Title of the tag
curl 'http://example.com/api/test'
  -H 'Authorization: key'

Create tags

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit tags

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete tags

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get tag

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List tags

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Users

The users object

Attributes:

Attribute
Description
Contains the candidate id
User was deleted
_deleted_dates
subdocuments 
Contains the date in which the user was deleted and its reasons
_setup_date
datetime 
Date in which the user was set
_suspended
boolean 
User was suspended
_suspended_date
datetime 
Contains the date in which the user was suspended
Who suspended that user
accounting_id
string 
This contains the accounting id number
availability
subdocument 
Days and hours in which the user is available
certifications
subdocuments 
Certifications of the user, like school, university and etc
How are the cleaning skills of the user
How are the cooking skills of the user
If the user was a criminal offender
In case the user was a criminal offender, what was the reason
Date of birth of the user
Contains information on the user's drivers licence, if the user has one or not and others
This contains the level of education of the user
email
string 
Contains the user email
employment_history
subdocuments 
This contains the employment history of the user, previous jobs, duration and etc
How many years of experiece the user has
experience_with_ages
subdocument 
Information on which range of ages the user has experience with
ext_id
string 
Contains the user external ID
files
subdocuments 
Any files on the user
gender
id 
User's gender
has_pets
boolean 
If the user is okay with pets
invited_date
datetime 
Date in which the user was invited
is_setup
boolean 
If the user is set up
is_smoker
boolean 
If the user is okay with smokers
languages
subdocuments 
Languages spoken by the user, with information on which one is his or hers primary language
last_login_date
datetime 
Last time user logged in
Living status of the user
locations
subdocuments 
Location info, like address and geolocation
manager
id 
Manager info
name
subdocument 
Name of the user
The nearest intersection to the user
phones
subdocuments 
Information on the user's phones, like numbers and types
photo
file 
User's photo
role
id 
Role of the user
Type of role
salary_expectations
subdocument 
What are the salary expectations of the user
services
subdocuments 
Services provided by the user
skills
subdocuments 
What are the user's skills
source
id 
User's source
ssn
string 
SSN number
SSN expiry date
start_date
date 
Date in which the user started
How are the swimming skills of the user
timezone
id 
Timezone of the user
Contains the method of transportation of the user, if it is by bus or car for example
travel_passport
boolean 
If the user has a valid travel passport or not
If the user is okay with pets, which kind of pets
us_visa
boolean 
If the user has a US travel visa or not
will_travel
boolean 
If the user is willing to travel or not
What is the type of work permit of the user
work_status
subdocument 
Contains information on the user work status, if it is full time, part time, temp or on call
curl 'http://example.com/api/test'
  -H 'Authorization: key'
{
  "_id": "53f6b74b6396a0d27200004b",
  "ext_id": "S1HII3J",
  "timezone": "1ba1a8c71d512573a97cb8d6",
  "name": {
    "first": "Bernard",
    "last": "Rodriguez",
    "title": "2e5c84ad927c053c8b7a7657"
  },
  "email": "bernard.rodriguez30@alaunus.com",
  "start_date": "2014-08-21",
  "photo": {
    "_id": "53f6b74b6396a0d27200004a",
    "name": "92.jpg"
  },
  "_created_date": "2014-08-21T23:21:47-04:00",
  "is_setup": true,
  "services": [
    {
      "service": {
        "_id": "536f3444f518db6e5202a32c",
        "code": "AC001",
        "color": "#00aa00",
        "label": "Attendant Care",
        "bill_rate": {
          "rate": 21.95,
          "unit": "50ab5c594ef4ae57bda03025",
          "taxes": [
            {
              "_id": "536f34e6f518db6e5202a32d",
              "tax": "536f3405f518db6e5202a32b"
            }
          ]
        },
        "pay_rate": {
          "rate": 13.12,
          "unit": "50ab5c594ef4ae57bda03025"
        },
        "_key": 0
      },
      "pay_rate": {
        "rate": 13.5,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "_id": "53f6b7536396a0d272000050",
      "_created_user": "53a8701dd6c8df514f8b459d",
      "held_since": "2015-11-08",
      "rating": 4,
      "_key": 0
    },
    {
      "service": {
        "color": "#FFB878",
        "code": "HK001",
        "label": "Housekeeping",
        "bill_rate": {
          "rate": 21.5,
          "unit": "50ab5c594ef4ae57bda03025",
          "taxes": [
            {
              "tax": "536f3405f518db6e5202a32b",
              "_id": "5398cbc54b4eafb21e000038",
              "_created_user": "5398bdb769aed1910a0000b1"
            }
          ]
        },
        "pay_rate": {
          "rate": 13,
          "unit": "50ab5c594ef4ae57bda03025"
        },
        "_id": "5398cb8304fff5090c00002e",
        "_created_user": "5398bdb769aed1910a0000b1",
        "min_billable_hours": 2,
        "_key": 2
      },
      "pay_rate": {
        "rate": 17,
        "unit": "50ab5c594ef4ae57bda03025"
      },
      "_id": "53f6b75a3fae5bfa780000bd",
      "_created_user": "53a8701dd6c8df514f8b459d",
      "held_since": "2016-05-15",
      "rating": 2,
      "_key": 1
    },
    {
      "service": {
        "color": "#00ccff",
        "code": "RPN001",
        "label": "Registered Practical Nurse",
        "bill_rate": {
          "rate": 41.2,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "pay_rate": {
          "rate": 32,
          "unit": "2c39fd62449c8da26b9b09ac"
        },
        "_id": "53a37d11056553f52d00000f",
        "_created_user": "5398bdb769aed1910a0000b1",
        "_key": 4
      },
      "pay_rate": {
        "rate": 32,
        "unit": "2c39fd62449c8da26b9b09ac"
      },
      "held_since": "2014-08-03",
      "rating": 5,
      "_id": "53f78c2252b53f9e38000575",
      "_created_user": "53a8701dd6c8df514f8b459d",
      "_key": 2
    }
  ],
  "manager": {
    "_id": "57360e77f90e15c27c8b4567",
    "name": {
      "first": "John",
      "last": "Doe"
    }
  },
  "accounting_id": "S1HII3J",
  "_setup_date": "2014-08-22T12:19:34-04:00",
  "languages": [
    {
      "primary": false,
      "language": "23aec8cc02f681a6158f919d",
      "fluency": "1cc5a6123c0bebd535e5a6ee",
      "_id": "57597e9ff90e154f718b4572",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 0
    },
    {
      "primary": false,
      "language": "0abeb098607ced61942835a3",
      "fluency": "2521a1856e750264c5645c2f",
      "_id": "57597e9ff90e154f718b4573",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 1
    },
    {
      "primary": true,
      "language": "318722ea904dbe2ec1abc659",
      "fluency": "1cc5a6123c0bebd535e5a6ee",
      "_id": "57b71aae563de13e3f8b456a",
      "_created_user": {
        "_id": "57360e77f90e15c27c8b4567",
        "name": {
          "first": "John",
          "last": "Doe"
        }
      },
      "_key": 2
    }
  ],
  "living_status": "14063fd9ce471eb4a89e8efb",
  "date_of_birth": "1985-04-07",
  "ssn_expiry_date": "2020-08-25",
  "gender": "388057a478772ba4b477d1d7",
  "education_level": "86ed613f78fc346bc0f93c98",
  "transportation": "576b0594efa3eedd9ff03687",
  "experience_num_of_years": "576b0827efa3eedd9ff0368f",
  "cooking_skill": "576b1eaaefa3eedd9ff036a3",
  "cleaning_skill": "576b23b1efa3eedd9ff036aa",
  "is_smoker": true,
  "has_pets": true,
  "type_of_pets": "576b1dc8efa3eedd9ff0369c",
  "ssn": "789546154",
  "criminal_offender": false,
  "will_travel": false,
  "travel_passport": false,
  "us_visa": false,
  "experience_with_ages": {
    "age_0_months_3_months": false,
    "age_3_months_1_year": false,
    "age_1_year_3_years": false,
    "age_3_years_6_years": false,
    "age_6_years_10_years": false,
    "age_10_years_15_years": false,
    "age_15_years_more": false
  },
  "work_status": {
    "full_time": false,
    "part_time": false,
    "temp": false,
    "on_call": false
  }
}

Create users

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit users

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete users

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get user

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List users

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below

Usersnotes

The usersnotes object

Attributes:

Attribute
Description
Date in which the note was created
Which user created the note
If it was deleted
last_updated_date
datetime 
Last date note was updated
Last user that updated the note
note
string 
The note itself
priority
id 
The priority of the note
title
string 
The title of the note
user
id 
User ID
curl 'http://example.com/api/test'
  -H 'Authorization: key'

Create usersnotes

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Edit usersnotes

Doctor Strange is a 2016 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Walt Disney Studios Motion Pictures. It is the fourteenth film of the Marvel Cinematic Universe (MCU). The film is directed by Scott Derrickson, who wrote the film with Jon Spaihts and C. Robert Cargill, and stars Benedict Cumberbatch, Chiwetel Ejiofor, Rachel McAdams, Benedict Wong, Michael Stuhlbarg, Benjamin Bratt, Scott Adkins, Mads Mikkelsen, and Tilda Swinton. In Doctor Strange, surgeon Stephen Strange learns the mystic arts from the Ancient One after a career-ending car accident.

Various incarnations of a Doctor Strange film have been in development since the mid-1980s until Paramount Pictures acquired the film rights in April 2005 on behalf of Marvel Studios. Thomas Dean Donnelly and Joshua Oppenheimer were brought on board in June 2010 to write a screenplay. In June 2014, Derrickson and Spaihts were hired to direct and re-write the film, respectively. Cumberbatch was chosen for the eponymous role in December 2014, necessitating a schedule change to work around his other commitments. This gave Derrickson time to work on the script himself, for which he brought Cargill on to help. The film began principal photography in November 2015 in Nepal before moving to the United Kingdom, and concluded in New York City in April 2016. Filming also occurred in Hong Kong.

Delete usersnotes

A Carreta Furacão é um grupo que viaja com o Trenzinho da Alegria, que é uma carreta pintada, pelas ruas do Brasil mais especificamente de Ribeirão Preto, e são os maiores causadores de acidentes, ao menos entre eles, já que sempre um ou outro se machuca.

Eles fazem isso todos os dias. A Carreta Furacão é o Esquadrão Suicida brasileiro, mas nem precisa de colar explosivo para alguém morrer. Em vez de Arlequina é o Bozo, e até o Capitão América fazendo esse papel de guerrilheiro suicida devido à crise nos Estados Unidos.

Get usersnote

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
Click here to be redirected for the query information

List usersnotes

Iron Man is a 2008 American superhero film featuring the Marvel Comics character of the same name, produced by Marvel Studios and distributed by Paramount Pictures.1 It is the first film in the Marvel Cinematic Universe. The film was directed by Jon Favreau, with a screenplay by Mark Fergus and Hawk Ostby and Art Marcum and Matt Holloway. It stars Robert Downey Jr., Terrence Howard, Jeff Bridges, Shaun Toub and Gwyneth Paltrow. In Iron Man, Tony Stark, an industrialist and master engineer, builds a powered exoskeleton and becomes the technologically advanced superhero Iron Man.

Argument
Description
objects
true, false, "primary", "secondary"
returns documents and/or subdocuments as objects or arrays
  • true returns objects
  • false returns arrays
  • primary returns documents as objects and subdocuments as arrays
  • secondary returns documents in an array and subdocuments as objects
archived
true, false, "primary", "secondary"
enables returning archived documents and subdocuments (i.e. the field _deleted is true)
  • true returns all archived and unarchived documents and subdocuments
  • false prevents all archived documents/subdocuments from being returned
  • primary returns all archived and unarchived documents and only unarchived subdocuments
  • secondary returns only unarchived documents and all archived and unarchived subdocuments for those documents
primary
true, false
this function is currently broken
limit
non-negative integer
limits the total amount of documents that are returned to the number specified
offset
non-negative integer
skips the first specified number of result documents
fields
comma separated fields
the document returns with only the specified fields; if no fields are specified, then all fields are returned
  • note that fields within subdocument(s) can be specified using dot notation
  • example: locations.address.city
  • there are some fields that are always returned whether they're specified or not:
    • _id
    • subdocuments._id
    • subdocuments._key
files
comma separated fields
embeds a file subdocument in the specified file-type fields
sort
{comma separated fields in the form "field":[1, -1]}
sorts the results by the specified fields in the order that they appear
  • in the given example we first sort by name.first, then by name.last
  • 1 means sort ascending (A -> Z); -1 means sort descending (Z -> A)
msort
array({"fields": array(array(comma separated fields)), "sort":[1, -1]})
merges the innermost arrays in the order of the specified fields, then sorts and returns the results
  • in the given example we first merge to get a strings in the form "contact.name.first contact.name.last" or "company.name.title", like "Jane Doe" or "Intact Insurance Company"
  • then we sort the resulting strings either ascending or descending and return the result after sorting
embeds
array({"collection":collection, "function":value})
embeds within the returned document content from a document of a different (or the same) collection
  • you can specify zero or more of the following functions to execute on the embedded document:
    • objects, archived, primary, fields, embeds
    • within an embed, the archived function defaults its value to true and its value primary is disabled
    • the primary function is currently broken
query
{comma separated queries}
see below